package com.beeantec.jnrerc.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author anthony
 * @since 2022-02-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("evaluate")
public class Evaluate extends Model<Evaluate> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 0课程
     */
    private Integer type;

    @TableField("itemId")
    private Integer itemId;

    private Double score;

    @TableField("memberId")
    private Integer memberId;


    public static final String ID = "id";

    public static final String TYPE = "type";

    public static final String ITEMID = "itemId";

    public static final String SCORE = "score";

    public static final String MEMBERID = "memberId";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
